# Copyright 2019 Google LLC
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
#     http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.

# NOTE: This file is auto generated by the elixir code generator program.
# Do not edit this file manually.

defmodule GoogleApi.MigrationCenter.V1.Model.ReportSummaryGroupPreferenceSetFinding do
  @moduledoc """
  Summary Findings for a specific Group/PreferenceSet combination.

  ## Attributes

  *   `computeEngineFinding` (*type:* `GoogleApi.MigrationCenter.V1.Model.ReportSummaryComputeEngineFinding.t`, *default:* `nil`) - A set of findings that applies to Compute Engine machines in the input.
  *   `description` (*type:* `String.t`, *default:* `nil`) - Description for the Preference Set.
  *   `displayName` (*type:* `String.t`, *default:* `nil`) - Display Name of the Preference Set
  *   `machinePreferences` (*type:* `GoogleApi.MigrationCenter.V1.Model.VirtualMachinePreferences.t`, *default:* `nil`) - A set of preferences that applies to all machines in the context.
  *   `monthlyCostCompute` (*type:* `GoogleApi.MigrationCenter.V1.Model.Money.t`, *default:* `nil`) - Compute monthly cost for this preference set.
  *   `monthlyCostNetworkEgress` (*type:* `GoogleApi.MigrationCenter.V1.Model.Money.t`, *default:* `nil`) - Network Egress monthly cost for this preference set.
  *   `monthlyCostOsLicense` (*type:* `GoogleApi.MigrationCenter.V1.Model.Money.t`, *default:* `nil`) - Licensing monthly cost for this preference set.
  *   `monthlyCostOther` (*type:* `GoogleApi.MigrationCenter.V1.Model.Money.t`, *default:* `nil`) - Miscellaneous monthly cost for this preference set.
  *   `monthlyCostStorage` (*type:* `GoogleApi.MigrationCenter.V1.Model.Money.t`, *default:* `nil`) - Storage monthly cost for this preference set.
  *   `monthlyCostTotal` (*type:* `GoogleApi.MigrationCenter.V1.Model.Money.t`, *default:* `nil`) - Total monthly cost for this preference set.
  *   `soleTenantFinding` (*type:* `GoogleApi.MigrationCenter.V1.Model.ReportSummarySoleTenantFinding.t`, *default:* `nil`) - A set of findings that applies to Sole-Tenant machines in the input.
  *   `vmwareEngineFinding` (*type:* `GoogleApi.MigrationCenter.V1.Model.ReportSummaryVmwareEngineFinding.t`, *default:* `nil`) - A set of findings that applies to VMWare machines in the input.
  """

  use GoogleApi.Gax.ModelBase

  @type t :: %__MODULE__{
          :computeEngineFinding =>
            GoogleApi.MigrationCenter.V1.Model.ReportSummaryComputeEngineFinding.t() | nil,
          :description => String.t() | nil,
          :displayName => String.t() | nil,
          :machinePreferences =>
            GoogleApi.MigrationCenter.V1.Model.VirtualMachinePreferences.t() | nil,
          :monthlyCostCompute => GoogleApi.MigrationCenter.V1.Model.Money.t() | nil,
          :monthlyCostNetworkEgress => GoogleApi.MigrationCenter.V1.Model.Money.t() | nil,
          :monthlyCostOsLicense => GoogleApi.MigrationCenter.V1.Model.Money.t() | nil,
          :monthlyCostOther => GoogleApi.MigrationCenter.V1.Model.Money.t() | nil,
          :monthlyCostStorage => GoogleApi.MigrationCenter.V1.Model.Money.t() | nil,
          :monthlyCostTotal => GoogleApi.MigrationCenter.V1.Model.Money.t() | nil,
          :soleTenantFinding =>
            GoogleApi.MigrationCenter.V1.Model.ReportSummarySoleTenantFinding.t() | nil,
          :vmwareEngineFinding =>
            GoogleApi.MigrationCenter.V1.Model.ReportSummaryVmwareEngineFinding.t() | nil
        }

  field(:computeEngineFinding,
    as: GoogleApi.MigrationCenter.V1.Model.ReportSummaryComputeEngineFinding
  )

  field(:description)
  field(:displayName)
  field(:machinePreferences, as: GoogleApi.MigrationCenter.V1.Model.VirtualMachinePreferences)
  field(:monthlyCostCompute, as: GoogleApi.MigrationCenter.V1.Model.Money)
  field(:monthlyCostNetworkEgress, as: GoogleApi.MigrationCenter.V1.Model.Money)
  field(:monthlyCostOsLicense, as: GoogleApi.MigrationCenter.V1.Model.Money)
  field(:monthlyCostOther, as: GoogleApi.MigrationCenter.V1.Model.Money)
  field(:monthlyCostStorage, as: GoogleApi.MigrationCenter.V1.Model.Money)
  field(:monthlyCostTotal, as: GoogleApi.MigrationCenter.V1.Model.Money)
  field(:soleTenantFinding, as: GoogleApi.MigrationCenter.V1.Model.ReportSummarySoleTenantFinding)

  field(:vmwareEngineFinding,
    as: GoogleApi.MigrationCenter.V1.Model.ReportSummaryVmwareEngineFinding
  )
end

defimpl Poison.Decoder,
  for: GoogleApi.MigrationCenter.V1.Model.ReportSummaryGroupPreferenceSetFinding do
  def decode(value, options) do
    GoogleApi.MigrationCenter.V1.Model.ReportSummaryGroupPreferenceSetFinding.decode(
      value,
      options
    )
  end
end

defimpl Poison.Encoder,
  for: GoogleApi.MigrationCenter.V1.Model.ReportSummaryGroupPreferenceSetFinding do
  def encode(value, options) do
    GoogleApi.Gax.ModelBase.encode(value, options)
  end
end
